package com.teaching.teachingsupport.mapper.teacherviewmapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teaching.teachingsupport.common.pojo.dataobject.HomeworkStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface HomeworkStudentMapper extends BaseMapper<HomeworkStudent> {
    @Select("SELECT * FROM homework_student WHERE teacher_homework_id = #{teacherHomeworkId} AND student_id = #{studentId}")
    HomeworkStudent findByTeacherHomeworkIdAndStudentId(@Param("teacherHomeworkId") Long teacherHomeworkId, @Param("studentId") Long studentId);
} 